package com.cloud.service;

import com.cloud.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient("seata-account-service")
public interface AccountService {
    @PostMapping("/storage/decrease")
    R decrease(@RequestParam("userId") Long userId,
               @RequestParam("money") BigDecimal money);
}
